USE [HR_DB]
GO
if exists(select * from dbo.sysobjects where id = object_id(N'engage_answer_details')   and   OBJECTPROPERTY(id,   N'IsUserTable')   =   1)   
  drop table engage_answer_details  
-- =============================================
-- Author:杨洁(kaixuanpisces)
-- Create date: 20090826
-- Description:考试答题详细信息
-- =============================================
CREATE TABLE [dbo].[engage_answer_details](
	[and_id] [smallint] IDENTITY(1,1) NOT NULL,
	[answer_number] [varchar](30) NULL,
	[subject_id] [smallint] NULL,
	[answer] [varchar](10) NULL,
 CONSTRAINT [engage_answer_details_PK] PRIMARY KEY CLUSTERED 
(
	[and_id] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
-- ==============================================
-- 列名说明
-- ==============================================
GO
SET ANSI_PADDING OFF
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'主键，自动增长列' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'engage_answer_details', @level2type=N'COLUMN',@level2name=N'and_id'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'答案编号' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'engage_answer_details', @level2type=N'COLUMN',@level2name=N'answer_number'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'试题编号' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'engage_answer_details', @level2type=N'COLUMN',@level2name=N'subject_id'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'答题者答案' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'engage_answer_details', @level2type=N'COLUMN',@level2name=N'answer'